#!/bin/sh

RESULT=`/home/repo-deb/bin/repo-ls | zenity --list --title "Удаления пакета" --column "Пакет" --width=600  --height=480`
CODENAME=`echo $RESULT | awk 'BEGIN {FS="|"} {print $1}'`
COMPONENT=`echo $RESULT | awk 'BEGIN {FS="|"} {print $2}'`
NAME=`echo $RESULT | awk '{print $2}'`
/home/repo-deb/bin/repo-rm -C $COMPONENT -N $CODENAME $NAME
